package com.ancient.base.page;

public class PageModel {
	/**
	 * 从第几条开始
	 */
	private int displayStart;

	/**
	 * 每页多少条
	 */
	private int displayLength;

	public int getDisplayStart() {
		return displayStart = displayStart == 0 ? 1 : displayStart;
	}

	public void setDisplayStart(int displayStart) {
		this.displayStart = displayStart == 0 ? 1 : displayStart;
	}

	public int getDisplayLength() {
		return displayLength = displayLength == 0 ? 10 : displayLength;
	}

	public void setDisplayLength(int displayLength) {
		this.displayLength = displayLength == 0 ? 10 : displayLength;
	}

}
